package com.house.service;


import com.house.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author asus
 * @since 2021-02-28
 */
public interface UserService {

    User login(User user);

    Integer register(User user);

    User updateUserInfo(User user);

    boolean updatePassword(String username, String password1, String password2);

    List<User> getAllUser(Integer type);

    User getUserByUsernameOrId(String username, Integer id);

    Integer updateUserAvatar(String username, String avatar);
}
